package com.ssm.crud.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.ssm.crud.bean.Employee;
import com.ssm.crud.bean.EmployeeExample;

public interface EmployeeService {
	List<Employee> selectByExampleWithDept(EmployeeExample example);
	
	int deleteByExample(EmployeeExample example);

    int deleteByPrimaryKey(Integer empId);
    
    Employee selectByPrimaryKeyWithDept(Integer empId);

    int insertSelective(Employee record);
    
    int insert(Employee record);
    
    int updateByExampleSelective(@Param("record") Employee record, @Param("example") EmployeeExample example);

    int updateByExample(@Param("record") Employee record, @Param("example") EmployeeExample example);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);

	void deleteBatch(List<Integer> del_ids);

}
